package com.dd.cloud.user.entity.mechan;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 药房信息表
 * </p>
 *
 * @author czg
 * @since 2020-03-21
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "机构绑定药房表")
public class MechanBindPhar implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 药房表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 龙头机构id
     */
    @Column(comment = "龙头机构id")
    private Integer mechanId;

    /**
     * 药房id
     */
    @Column(comment = "药房id")
    private Integer pharId;

    /**
     * 绑定状态
     */
    @Column(comment = "绑定状态 1有效 -1删除")
    private Integer status;

    /**
     * 创建日期
     */
    @Column(comment = "创建日期", defaultValue = "now()")
    private LocalDateTime createDate;

    /**
     * 更新日期
     */
    @Column(comment = "更新日期", defaultValue = "now()")
    private LocalDateTime updateDate;
}
